package com.shujia.java.day13.demo6;

/**
 * 泛型方法
 */
//public class Function<T> {
//////    public void print(String string){
//////        System.out.println(string);
//////    }
//////    public void print(Integer Integer){
//////        System.out.println(Integer);
//////    }
////
////    public void print(T t){
////        System.out.println(t);
////    }
////}

public class Function{
    //泛型方法
    public <T> void print(T t){
        System.out.println(t);
    }
}
